package com.jiang.lianxi;

import java.util.Scanner;

public class ShuZi6 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入第一个整数");
        int i =sc.nextInt();
        System.out.println("请输入第二个整数");
        int j =sc.nextInt();
        boolean result = i == 6 || j == 6 || (i + j) % 6 == 0;
        System.out.println(result);
    }
}
